package org.ponly.cta4j.spring;

import org.springframework.beans.factory.xml.BeanDefinitionParser;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * spring 命名空间处理器.
 *
 * @author vacoor
 * @since 1.0
 */
public class SpringNamespaceHandler extends NamespaceHandlerSupport {
    /**
     * 验证码服务定义解析器实例.
     */
    private static final BeanDefinitionParser CSBD = new CaptchaServiceBeanDefinitionParser();

    /**
     * {@inheritDoc}
     */
    @Override
    public void init() {
        registerBeanDefinitionParser("service", CSBD);
    }

}
